package com.xyf.statistics.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: clms-first
 * @description: 订单的实体类
 * @author: 陈
 * @create: 2021-07-23 19:04
 **/
@Data
@TableName("tb_order")
@ApiModel(value = "Order对象实体",description = "订单信息表")
public class TbOrder {
    @ApiModelProperty(value = "订单ID")
    @TableId(value ="id",type = IdType.AUTO)
    private long id;

    @ApiModelProperty(value = "客户ID")
    private long clientId;

    @ApiModelProperty(value = "车辆ID")
    private long carId;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "租出门店")
    private long brrowShop;

    @ApiModelProperty(value = "归还门店")
    private long returnShop;

    @ApiModelProperty(value = "总金额")
    private double totalPrice;

    @ApiModelProperty(value = "预付金额")
    private double preparidAmount;

    @ApiModelProperty(value = "订单状态(输入Entered1, 提交Booked2, 预约Reserved3, 使用Inuse4, 交还Returned5, 取消Cancelled6)")
    private long state;

    @ApiModelProperty(value = "是否送车上门")
    private String isGetCarAtHome;

    @ApiModelProperty(value = "上门地址ID")
    private String getCarLocation;

    @ApiModelProperty(value = "是否上门还车")
    private String isReturnCarAtHome;

    @ApiModelProperty(value = "上门地址")
    private String returnCarLocation;

    @ApiModelProperty(value = "添加时间")
    private String addtime;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "年月")
    private String ymonth;


}
